﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yto.Common.Time
{
    /// <summary>
    /// Time Operations
    /// </summary>
    public interface ITimeProvider
    {
        /// <summary>
        /// Now
        /// </summary>
        DateTime Now { get; }

        /// <summary>
        /// DateTime Kind
        /// </summary>
        DateTimeKind Kind { get; }

        /// <summary>
        /// A flag of multiple time zone.
        /// </summary>
        bool IsMultipleTimezone { get; }

        /// <summary>
        /// 标准化时间
        /// </summary>
        /// <param name="dateTime"></param>
        /// <returns></returns>
        DateTime Standardize(DateTime dateTime);
    }
}
